//  1.1 用模版字符串
// https://www.bootschool.net/ascii
// http://patorjk.com/software/taag/#p=display&f=Graffiti&t=Type%20Something%20
// 从网站复制过来后，要转义一下(replace就行)，不然打印不出来你想要的效果(转义:把所有的单斜杠替换成双斜杠 \->\\

const bannerTemplate = `
____  ____  ____  ____  _  _____ 
/  __\\/  _ \\/  _ \\/  _ \\/ \\/__ __\\
|  \\/|| / \\|| | //| | //| |  / \\  
|    /| |-||| |_\\\\| |_\\\\| |  | |  
\\_/\\_\\\\_/ \\|\\____/\\____/\\_/  \\_/  `

//样式变量
const styleTitle1 = ` font-size: 20px; font-weight: 300; color: rgb(244,167,89); `
const styleTitle2 = ` font-style: oblique; font-size:14px; color: rgb(244,167,89); font-weight: 400; `
const styleContent = ` color:rgb(30,152,255);margin-top:15px `
/* 内容代码 */
const title1 = 'Alice world'
const title2 = 'So,where u see the rabbit hole?'
//用模版字符串
const content = `
for life:
if i can, i wanna change the world。 
`
//最终打印，对应好相关的样式,一个样式对应一个%c

export const banner = () => {
  console.log(bannerTemplate)
  console.log(
    `%c${title1} %c${title2} %c${content}`,
    styleTitle1,
    styleTitle2,
    styleContent,
  )
}
